﻿<Window x:Class="ExeInvoker.ProgramAddOrEdit"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ProgramAddOrEdit" Height="300" Width="500" SizeToContent="Height" Loaded="Window_Loaded">
    <Grid Margin="3">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="程序路径：" Margin="3"/>
        <TextBox Grid.Row="0" Grid.Column="1" Name="tbProgramPath" Text="{Binding Path=ProgramPath}" Margin="3"/>
        <TextBlock Grid.Row="1" Grid.Column="0" Text="程序参数：" Margin="3" />
        <TextBox Grid.Row="1" Grid.Column="1" Name="tbProgramArgs" Text="{Binding Path=ProgramArgs}" Margin="3"/>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="快捷键：" Margin="3"/>
        <TextBox Grid.Row="2" Grid.Column="1" Name="tbStrokeKeys" Margin="3" Text="{Binding Path=StrokeKeys}"/>

        <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="3">
            <Button Name="btnChoose" Margin="3" Content="选择程序.." Click="btnChoose_Click" Width="80"/>
            <Button Name="btnOK" Margin="3" Content="保存" Click="btnOK_Click" Width="80"/>
        </StackPanel>
        
    </Grid>
</Window>
